/*
 * @: 
 * @Version: 1.0
 * @Autor: ziwei
 * @Date: 2022-02-28 17:26:59
 * @LastEditors: ziwei
 * @LastEditTime: 2022-02-28 17:27:00
 */
// 判断路径是不是带协议的外链
export const isExternal = (path: string): boolean => {
  return /^(https?:|mailto:|tel:)/.test(path)
}